<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{include file="includeMeta.html"}

<meta name="robots" content="FOLLOW,INDEX">

<meta name="title" content="User Admin - hohobb.com" />

<title>User Admin - hohobb.com</title>

<link rel="stylesheet" type="text/css" href="{$HOME_URL}/css/admin.css" />
<link rel="stylesheet" type="text/css" href="{$HOME_URL}/js/tools/highslide/highslide.css" />
<script type="text/javascript" src="{$HOME_URL}/js/tools/highslide/highslide-with-html.js"></script>

<script type="text/javascript" src="{$HOME_URL}/js/tools/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/encode/extends.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/encode/request.js"></script>
<script language="javascript" src="{$HOME_URL}/js/utils/ValidationUtils.js" type="text/JavaScript"></script>

<script type="text/javascript">
	hs.graphicsDir = '{$HOME_URL}/js/tools/highslide/graphics/';
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'draggable-header';
	hs.showCredits = false;
</script>

</head>
<body>
	<div class="mainBox">
		{include file="includeTop.html"}
		{include file="includeSearchBox.html"}
		<div class="contentBox">
			<div class="content">
				<div class="listBox">
					<div class="admin">
						<div class="title navTitleFont">
			    			Youre Coupons
			    		</div>
			    		
			    		<div class="listBox">
			    			{if $oCoupons|count > 0}
							<table width=750 cellspacing="1" cellpadding="4">
								{if $error_message}
								<tr height=30 class="font12">
									<td colspan='8' width=700 style="padding-left: 10px;">{$error_message}</td>									
								</tr>
								{/if}
								<tr height=32 class="font13 fontWeight">
									<td width=300 style="padding-left: 10px;">Coupon Name</td>
									<td width=120 style="padding-left: 10px;">Coupon Code</td>									
									<td width=80 style="padding-left: 10px;">Status</td>
									<td width=130 style="padding-left: 10px;">Update At</td>
									<td width=120 style="padding-left: 10px;">Action</td>
								</tr>
								
								{foreach item=oCoupon from=$oCoupons name=plist}
								{if $oCoupon@iteration is div by 2}
									<tr height=30 class="font12">
								{else}
									<tr height=30 class="font12" style="background:#F9EAE5;">
								{/if}
									<td style="padding-left: 10px;">{$oCoupon->getName()}</td>
									<td style="padding-left: 10px;">{$oCoupon->getCode()}</td>									
									<td style="padding-left: 10px;">{$oCoupon->getStatus()}</td>
									<td style="padding-left: 10px;">{$oCoupon->getModifiedTime()|date_format:"%B %e, %Y"}</td>
									<td style="padding-left: 10px;">
										<a href="viewCoupon.php?id={$oCoupon->getId()}" onclick="return hs.htmlExpand(this, { objectType: 'iframe', headingText: '{$oCoupon->getName()|replace:'\'':''}' } )">Detail</a>&nbsp;&nbsp;
										<a href="?id={$oCoupon->getId()}" onClick="return validUtils.isConfirmOperate('delete')">Delete</a>
									</td>
								</tr>
								{/foreach}
							</table>
							{else}
															
							{/if}
						</div>
					</div>
				</div>
				
				<div class="nav">
					{include file="includeActionBox.html"}
				</div>
			</div>		
			<div class="clear"></div>
		</div>
		
		{include file="footer.html"}
	</div>
</body>
</html>
